package cn.li.system.controller;

import cn.li.basic.util.PageList;
import cn.li.system.annotation.Operation;
import cn.li.system.domain.SystemLog;
import cn.li.system.query.SystemLogQuery;
import cn.li.system.service.ISystemLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Operation(value = "获取报表分页列表")
@RequestMapping("/syslog")
public class SystemLogController {
    @Autowired
    private ISystemLogService service;

    @PostMapping
    public PageList<SystemLog> queryPage(@RequestBody SystemLogQuery query) {
        return service.queryPage(query);
    }

}
